import org.junit.jupiter.api.Test;

import java.time.ZonedDateTime;

/**
 * @ClassName Demo
 * @Description TODO
 * @Author ZJL
 * @Date 2022/5/9 4:13
 * @Version 1.0
 **/
public class Demo {
    @Test
    public void testTime(){
        ZonedDateTime zbj = ZonedDateTime.now();   //默认时区
        System.out.println(zbj);
        //2022-03-17T16:22:45.907+08:00[Asia/Shanghai]
    }
}
